import { http } from "@/utils"

// 用户注册
export const getUserRegisterAPI = (data) => http.post('/user/register', data)

// 用户登录
export const getUserLoginAPI = (data) => http.post('/user/login', data)

// 忘记密码
export const getUserForgetPasswordAPI = (data) => http.put('/user/loss', data)

// 获取用户信息
export const getUserInfoAPI = (id) => http.get(`/user/${id}`)

// 修改个人信息
export const getUserInfoModifyAPI = (data) => http.put('/user', data)

// 修改密码
export const getUserPasswordModifyAPI = (data) => http.put('/user/password', data)

// 用户注销
export const getUserDeleteAPI = (id) => http.delete(`/user/${id}`)


